function getProtocol() {
    // 获取当前URL的协议部分（包含冒号，如"http:"或"https:"）
    const protocol = window.location.protocol;
    
    // 去除末尾的冒号，只返回"http"或"https"
    return protocol.replace(':', '');
}
//// zeronews https://s3u416zkby.ny.takin.cc/
//var domain = "https://s3u416zkby.ny.takin.cc/"
//服务器ip 111.173.104.75
var domain = "http://tf6b6bdc.natappfree.cc/";
var href = window.location.href;

console.log(getProtocol())
var rootUrl;
console.log(href)
if(href.startsWith(domain)){
	rootUrl = domain
}else{
	if(getProtocol()=='http'){
		rootUrl = "http://localhost:8088/"
	}else{
		rootUrl = "https://localhost:8443/"
	}
}

